#!/bin/bash
clear
count=1
find / -perm +6000 1> file 2> /dev/null
for i in `cat file`
do
echo "$count: $i"
shuzu1[$count-1]$i
let count=$count+1
done
echo""
 echo "Please enter the number that you want to delete:"
read -a shuzu2
for j in ${shuzu2[*]}
do
if [ $j -gt $count -o $j -le 0 ]
then
echo "The $j is wrong! Please check"
echo ""
else
let temp=$j-1
chmod -s ${shuzu1[$temp]}
echo "$j -- ${shuzu1[$temp]} :have been processed"
echo ""
fi
done
